//
//  STNetRequset.h
//  YiYueStore
//
//  Created by zhouzhouzhou on 2018/10/16.
//  Copyright © 2018年 YuYiLian. All rights reserved.
//

#import <Foundation/Foundation.h>

typedef void (^STResultBlock)(BOOL succeeded, NSError *error);
typedef void (^STResultObjectBlock)(id result, NSError *error);
typedef void (^STResultArrayBlock)(NSArray *results, NSError *error);

@interface STNetRequset : NSObject

//get请求
+(void)netGetRequestWithUrlStr:(NSString *)urlStr withParameters:(NSDictionary *)parameters completion:(STResultObjectBlock)completion;

//post请求
+(void)netPostRequestWithUrlStr:(NSString *)urlStr withParameters:(NSDictionary *)parameters completion:(STResultObjectBlock)completion;

//post请求 参数格式为 row json
+(void)netPostJsonRequestWithUrlStr:(NSString *)urlStr withJsonDic:(id)jsonDic completion:(STResultObjectBlock)completion;

//上传文件 进度

//下载文件 进度


@end
